package com.crm.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the commissiontask database table.
 * 
 */
@Entity
@Table(name="commissiontask")
@NamedQuery(name="Commissiontask.findAll", query="SELECT c FROM Commissiontask c")
public class Commissiontask implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String commid;

	private String actiondescription;

	@Temporal(TemporalType.DATE)
	private Date completetime;

	private String contacts;

	private int first;

	private String founder;

	@Temporal(TemporalType.DATE)
	private Date foundertime;

	private int shanchu;

	@Temporal(TemporalType.DATE)
	private Date shijian;

	private int stage;

	//bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name="customer")
	private Customer customerBean;

	//bi-directional many-to-one association to Staff
	@ManyToOne
	@JoinColumn(name="personcharge")
	private Staff staff;

	public Commissiontask() {
	}

	public String getCommid() {
		return this.commid;
	}

	public void setCommid(String commid) {
		this.commid = commid;
	}

	public String getActiondescription() {
		return this.actiondescription;
	}

	public void setActiondescription(String actiondescription) {
		this.actiondescription = actiondescription;
	}

	public Date getCompletetime() {
		return this.completetime;
	}

	public void setCompletetime(Date completetime) {
		this.completetime = completetime;
	}

	public String getContacts() {
		return this.contacts;
	}

	public void setContacts(String contacts) {
		this.contacts = contacts;
	}

	public int getFirst() {
		return this.first;
	}

	public void setFirst(int first) {
		this.first = first;
	}

	public String getFounder() {
		return this.founder;
	}

	public void setFounder(String founder) {
		this.founder = founder;
	}

	public Date getFoundertime() {
		return this.foundertime;
	}

	public void setFoundertime(Date foundertime) {
		this.foundertime = foundertime;
	}

	public int getShanchu() {
		return this.shanchu;
	}

	public void setShanchu(int shanchu) {
		this.shanchu = shanchu;
	}

	public Date getShijian() {
		return this.shijian;
	}

	public void setShijian(Date shijian) {
		this.shijian = shijian;
	}

	public int getStage() {
		return this.stage;
	}

	public void setStage(int stage) {
		this.stage = stage;
	}

	public Customer getCustomerBean() {
		return this.customerBean;
	}

	public void setCustomerBean(Customer customerBean) {
		this.customerBean = customerBean;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

}